<%@ page import="com.liliya.service.impl.CateServiceImpl" %>
<%@ page import="com.liliya.service.CateService" %>
<%@ page import="com.liliya.pojo.Cate" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/1/4
  Time: 14:28
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html>
<head>
    <title>商城大类管理</title>
    <style>

        .blue_text {
            width: 100px;
            /*background: rgb(112, 144, 183);*/
        }

        table, tr, td {
            border: 1px solid rgb(112, 144, 183);
            text-align: center;
        }

        td {
            padding: 9px;
        }

        table {
            margin: auto;
            margin-bottom: 70px;
            width: 650px;
        }

        .aaa {
            padding: 10px;
        }

        .main {
            border: 2px solid cornflowerblue;
        }

        .cateImg {
            width: 350px;
        }

    </style>
</head>
<body>
<div style="width: 760px">
    <%@ include file="../common/header.jsp" %>
    <div class="main">
        <div style="margin: 10px 20px">
            <img src="${pageContext.request.contextPath}/img/category.gif" alt="商城大类管理">
        </div>
        <div style="text-align: center;font-size: 22px;color:rgb(112, 144, 183);margin-bottom: 20px">
            商城大类管理
        </div>
        <a href="./update?p=1">首页</a>
        <a href="./update?p=${pre}">上一页</a>
        <a href="./update?p=${next}">下一页</a>
        <a href="./update?p=${total}">最后一页</a>
        <a href="addcate.jsp">添加大类</a>

        <form method="post" action="${pageContext.request.contextPath}/cate/update" enctype="multipart/form-data">
            <table cellspacing="0" cellpadding="12">
                <tr>
                    <td class="blue_text">大类名称</td>
                    <td colspan="3"><input name="catename" value="${cate.catename}" type="text" style="width: 100%;
    height: 30px;"></td>
                </tr>
                <tr>
                    <td class="blue_text">大类描述</td>
                    <td colspan="3">
                        <input name="catedes" value="${cate.catedes}" type="text" style="width: 100%;
    height: 30px;">
                    </td>
                </tr>

                <tr>
                    <td class="blue_text">大类图片</td>
                    <td colspan="3"><img class="cateImg"
                                         src="${pageContext.request.contextPath}${cate.cateimglink}" alt="">
                        <input type="file" name="updatefile">
                    </td>

                </tr>
                <input type="hidden" name="catenum" value="${cate.catenum}">
                <tr>
                    <td class="blue_text">大类样式</td>
                    <td colspan="3"><input name="catestyle" value="${cate.catestyle}" type="text" style="width: 100%;
    height: 30px;"></td>
                </tr>

                <tr>
                    <td colspan="3">
                        <button>更新</button>
                        <a href="./del?catenum=${cate.catenum}">删除</a></td>
                </tr>
            </table>
        </form>
    </div>

    <%@ include file="../common/footer.jsp" %>
</div>
</body>
</html>
